#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#define SIZE 1024

int main()
{
	int fd=open("Write.txt",O_RDONLY,0666);
	if(fd < 0)
	{
		perror("open failed:\n");
		return 1;
	}
	char message[1024];
	ssize_t n=read(fd,message,sizeof(message));
	printf("这是读取到的数据：%s",message);
	close(fd);
	return 0;
}
